{% load urls %}
{% load cache %}
{% if items %}
{% cache 216000 archive_news %}
<div class="widget">
    <h3>Архив новостей</h3>
    <ul>
        {% for item in items %}
        <li>
            <a href="{% url apps.news.views.base.calendar item.publish_date.year item.publish_date.month %}">{{ item.publish_date|date:"F Y" }} (<span class="orange">{{ item.count }}</span>)</a>
        </li>
        {% endfor %}
    </ul>
</div>
{% endcache %}
{% endif %}

